package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.dragon.mmochat.model.enumType.MmochatTeamStateType;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_8_9S extends SkymobiProtocolMessage {
	MmochatTeamStateType teamState;

	public Mmochat_8_9S() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_8_9);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(teamState.getValue());
	}

	public void setTeamState(MmochatTeamStateType teamState) {
		this.teamState = teamState;
	}

}